﻿/**
 * @author sminutoli
 */
class com.dinmax.flash.central.action.ActionGetPersons
extends com.dinmax.flash.utilities.xml.XMLAction {
	
	private var name:String = "getpersons";
	
	public function ActionGetPersons(name:String, lastname:String, nick:String, phone:Number) {
		super();
		super.addParameter("name", name);
		super.addParameter("lastname", lastname);
		super.addParameter("nick", nick);
		if(String(phone) == "NaN" || String(phone) == null || String(phone) == undefined){
			super.addParameter("phonenumber", "");
		} else {
			super.addParameter("phonenumber", String(phone));
		};
		
		return;
	}
}